package com.example.day04.not;


import com.example.day04.bean.UpLoadBean;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

public interface ApiService {
    String APK="http://cdn.banmi.com/";
    @GET("banmiapp/apk/banmi_330.apk")
    Observable<ResponseBody> dawnloadApk();
    public String Url = "http://yun918.cn/study/public/";

    @Multipart
    @POST("file_upload.php")
    Observable<UpLoadBean> upload(@Part("key") RequestBody requestBody, @Part MultipartBody.Part
            file);
}
